Iiot Based Smart Factory 4.0 Over The Cloud